import React, { FC } from 'react';
import { Button } from 'antd';
import { useNavigate } from 'react-router-dom';
import Edit from './edit';
import { getPathRoot } from '@/utils';

const Groups: FC = () => {
  const navigate = useNavigate();

  return (
    <>
      <Edit
        isEdit
        buttonList={[
          <Button
            onClick={() => {
              navigate(`${getPathRoot()}/planning`);
            }}
          >
            返回
          </Button>,
          <Button type="primary">保存</Button>,
        ]}
      />
    </>
  );
};

export default Groups;
